// import { config } from '@vue/test-utils'
import axios from 'axios' // 创建一个axios 实例
const request = axios.create({
  baseURL: '',
  timeout: 5000
})
request.interceptors.request.use(config => {
  return config
}, err => {
  return Promise.reject(err)
})
request.interceptors.response.use(response => {
  return response.data
}, err => {
  return Promise.reject(err)
})
export default request // 导出axios实例
